#ifndef _UFO_DATA_STRUCT_H_
#define _UFO_DATA_STRUCT_H_

typedef struct _ufoRect
{
	float left, top, right, bottom;
}ufoRect;

int ufoRectEqual(const ufoRect *, const ufoRect *);

int ufoRectIntersection(const ufoRect *, const ufoRect *, ufoRect*);

int ufoRectMerge(const ufoRect *, const ufoRect *, ufoRect*);

int ufoRectOffset(ufoRect *, float, float);

int ufoRectMoveTo(ufoRect *, float, float);

int ufoRectIsEmpty(const ufoRect *);

int ufoRectIsPointIn(const ufoRect *, float, float);

typedef struct _ufoPoint
{
	float x, y;
}ufoPoint;

typedef struct _ufoSize
{
	float width, height;
}ufoSize;

typedef struct _ufoColor
{
	float red, green, blue, alpha;
}ufoColor;

#endif